package com.common.model.exception;

/**
 * 描述：
 * 数据没发现异常
 * @author xianggj
 * @Date 2021/9/2 17:35
 **/
public class DataNotFoundException extends RuntimeException {

    private String dataName;

    public DataNotFoundException(String dataName) {
        super("数据未发现：");
        this.dataName = dataName;
    }

    @Override
    public String getMessage() {
        return super.getMessage() + dataName;
    }
}
